//
//  TwoPicsOfCell.m
//  PetAPP
//
//  Created by dllo on 16/1/27.
//  Copyright © 2016年 Yuming. All rights reserved.
//

#import "TwoPicsOfCell.h"



@implementation TwoPicsOfCell

- (void)setPicViewOfHeightWithModel:(ModelOfContent *)model {

    CGFloat picViewHeight = 200;
    CGFloat picViewWidth = self.frame.size.width;
    for (int i = 0; i < 2; i++) {
        UIImageView *imageView = [self viewWithTag:(i + 10)];
        imageView.frame = CGRectMake(0 + i * ((picViewWidth - 3) / 2 ) + i * 3, 0, ((picViewWidth - 3) / 2 ), picViewHeight);
//        imageView.yy_imageURL = [NSURL URLWithString:[model.pics[i] objectForKey:@"url"]];
        [imageView yy_setImageWithURL:[NSURL URLWithString:[model.pics[i] objectForKey:@"url"]] options:YYWebImageOptionProgressiveBlur | YYWebImageOptionSetImageWithFadeAnimation];

    }
    
    self.viewOfpics.frame = CGRectMake(0, self.beginHeight, self.frame.size.width, picViewHeight);
    
}


@end
